package demo1;

public class Test {

    public static void func(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
//        Shape shape = new Shape();
        Shape shape1 = new Cycle();
        Shape shape2 = new Rect();

        func(shape1);
        func(shape2);
    }
}
